package com.dews.course.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.dews.common.utils.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 学业成绩成绩统计对象Vo
 * 
 * @author qingfeng
 * @date 2025-02-03
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class DegreeGradeVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("必修学分")
    private Double compulsoryCredits;

    @ApiModelProperty("选修学分")
    private Double electiveCredits;

    @ApiModelProperty("学分绩点")
    private Double gradePoint;

    @ApiModelProperty("课外学分")
    private Double extracurricularCredits;


    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    private LocalDateTime updateTime;

}
